pip3 install fcntl -i https://pypi.tuna.tsinghua.edu.cn/simple
pip3 install gunicorn -i https://pypi.tuna.tsinghua.edu.cn/simple

mkdir /web
cd /web

cat >server.py<<EOF
from flask import Flask

app = Flask(__name__)

@app.route('/')
def index():
    return 'this is index'

app.run(host="0.0.0.0")
EOF

systemctl stop firewalld
systemctl disabled firewalld

sed -i 's/enforcing/disabled/' /etc/selinux/config 
setenforce 0

gunicorn server:app
